#ifndef _BOAT_ENTITY_H_
#define _BOAT_ENTITY_H_

#include "AbstractEntity.h"
#include "BoatData.h"

#define BOAT_MOVING_RANGE 32
#define BOAT_V 0.5f

class BoatEntity : public AbstractEntity
{
public:
	//************************************
	// Method:    BoatEntity
	// FullName:  BoatEntity::BoatEntity
	// Access:    public 
	// Returns:   
	// Qualifier:
	// Parameter: int id
	// Parameter: int type
	// Parameter: double x
	// Parameter: double y
	//************************************
	BoatEntity(int id, int type, double x, double y);

	//************************************
	// Method:    update
	// FullName:  BoatEntity::update
	// Access:    virtual public 
	// Returns:   void
	// Qualifier:
	// Parameter: long time
	//************************************
	virtual void update(long time);

	//************************************
	// Method:    draw
	// FullName:  BoatEntity::draw
	// Access:    virtual public 
	// Returns:   void
	// Qualifier:
	// Parameter: long time
	//************************************
	virtual void draw(long time);

	//************************************
	// Method:    getAbstractData
	// FullName:  BoatEntity::getAbstractData
	// Access:    virtual public 
	// Returns:   AbstractData*
	// Qualifier:
	//************************************
	virtual AbstractData* getAbstractData();

	~BoatEntity();

private:
	BoatData* _data;

	double _nextX;
	double _x0;
};

#endif